home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / lib / partman / commit.d / 30parted < prev    next >
Text File  |  2008-10-29  |  318b  |  22 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/lib/base.sh
  4. . /lib/partman/lib/commit.sh
  5.  
  6. for dev in $DEVICES/*; do
  7.     [ -d "$dev" ] || continue
  8.     cd $dev
  9.  
  10.     open_dialog IS_CHANGED
  11.     read_line is_changed
  12.     close_dialog
  13.     [ "$is_changed" = yes ] || continue
  14.  
  15.     disable_swap "$dev"
  16.  
  17.     open_dialog COMMIT
  18.     close_dialog
  19.  
  20.     device_cleanup_partitions
  21. done
  22.